//
//  CMDBBaseBean.swift
//  CMDB
//
//  Created by 王磊 on 17/4/5.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import UIKit

public class CMDBBaseBean: NSObject {
    
    var rescode: String = ""
    
    var msg: String = ""
    
    var token: String = ""
    
    var sysTime: String = ""
    
    var data: AnyObject?
    
    var page: String?
    
    var serviceCode: CMDBRescodeType {
        guard !rescode.isEmpty else {
            return CMDBRescodeType.Failure
        }
        return CMDBRescodeType(string: rescode)
    }
}
